package com.office.system.domain;

import com.office.common.annotation.Excel;
import com.office.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 收入记录对象 finance_income
 * 
 * @author 数字牧马人
 */
public class FinanceIncome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收入ID */
    private Long incomeId;

    /** 收入编号 */
    @Excel(name = "收入编号")
    private String incomeNo;

    /** 账户ID */
    @Excel(name = "账户ID")
    private Long accountId;

    /** 收入分类ID */
    @Excel(name = "收入分类ID")
    private Long categoryId;

    /** 收入金额 */
    @Excel(name = "收入金额")
    private BigDecimal amount;

    /** 收入日期 */
    @Excel(name = "收入日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date incomeDate;

    /** 付款方 */
    @Excel(name = "付款方")
    private String payer;

    /** 收入描述 */
    @Excel(name = "收入描述")
    private String description;

    /** 附件URL */
    private String attachmentUrl;

    /** 状态 */
    @Excel(name = "状态", readConverterExp = "0=待确认,1=已确认,2=已取消")
    private String status;

    /** 账户名称 */
    private String accountName;

    /** 分类名称 */
    private String categoryName;

    public void setIncomeId(Long incomeId) 
    {
        this.incomeId = incomeId;
    }

    public Long getIncomeId() 
    {
        return incomeId;
    }
    public void setIncomeNo(String incomeNo) 
    {
        this.incomeNo = incomeNo;
    }

    public String getIncomeNo() 
    {
        return incomeNo;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setIncomeDate(Date incomeDate) 
    {
        this.incomeDate = incomeDate;
    }

    public Date getIncomeDate() 
    {
        return incomeDate;
    }
    public void setPayer(String payer) 
    {
        this.payer = payer;
    }

    public String getPayer() 
    {
        return payer;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("incomeId", getIncomeId())
            .append("incomeNo", getIncomeNo())
            .append("accountId", getAccountId())
            .append("categoryId", getCategoryId())
            .append("amount", getAmount())
            .append("incomeDate", getIncomeDate())
            .append("payer", getPayer())
            .append("description", getDescription())
            .append("attachmentUrl", getAttachmentUrl())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 